const router = require('express').Router();
// const router = epxress.Router()
// 首页路由
const sign="别低头，皇冠会掉";
const arr = ['猴子','猪','秃驴','河妖'];
const content = `
  <h1 style="text-align:center;color:blue">你好世界</h1>
`
router.get('/home', (req,res)=>{
  res.render('home',{
    sign,
    arr,
    content
  })
})

router.post('/home', (req,res)=>{
  res.send('我是首页的post请求')
})

module.exports = router;